Nevron Open Vision Documentation
Nevron.Nov.UI Namespace / NScrollContentBase Class / EnsureVisible Method / EnsureVisible(FunctionResult<NRectangle>,Boolean,Boolean) Method
if the top-bottom distance is larger than the viewport height a value of true makes sure that the top is visible, false makes sure that the bottom is visible
if the left-right distance is larger than the viewport width a value of true makes sure that the left is visible, false makes sure that the right is visible


In This Topic
    EnsureVisible(FunctionResult<NRectangle>,Boolean,Boolean) Method
    In This Topic
    Ensures that the specified rectangle is visible.
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Sub EnsureVisible( _
       ByVal getViewportRectDelegate As Nevron.Nov.FunctionResult(Of NRectangle), _
       ByVal givePreferenceToTop As System.Boolean, _
       ByVal givePreferenceToLeft As System.Boolean _
    ) 
    'Usage
     
    
    Dim instance As NScrollContentBase
    Dim getViewportRectDelegate As Nevron.Nov.FunctionResult(Of NRectangle)
    Dim givePreferenceToTop As System.Boolean
    Dim givePreferenceToLeft As System.Boolean
     
    instance.EnsureVisible(getViewportRectDelegate, givePreferenceToTop, givePreferenceToLeft)
    public virtual void EnsureVisible( 
       Nevron.Nov.FunctionResult<NRectangle> getViewportRectDelegate,
       System.bool givePreferenceToTop,
       System.bool givePreferenceToLeft
    )

    Parameters

    getViewportRectDelegate
    givePreferenceToTop
    if the top-bottom distance is larger than the viewport height a value of true makes sure that the top is visible, false makes sure that the bottom is visible
    givePreferenceToLeft
    if the left-right distance is larger than the viewport width a value of true makes sure that the left is visible, false makes sure that the right is visible
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also